<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增公告内容')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">申请审核人：</label>
				<div class="col-sm-8">
					<!--从员工表调用数据-->
				<select class="form-control" name="staffId">
					<option th:each="personInfo:${staffInfo}" th:value="${personInfo.staffId}">[[${personInfo.staffName}]]</option>
				</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">项目名称：</label>
				<div class="col-sm-8">
					<!--从项目表中调用-->
					<select class="form-control" name="itemId">
						<option th:each="itemInfo:${projectInfo}" th:value="${itemInfo.itemId}">[[${itemInfo.itemName}]]</option>
					</select>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "cyq/item/archiving";
	    
		$("#form-post-add").validate({
			onkeyup: false,
		    focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/add", $('#form-post-add').serialize());
	        }
	    }
	</script>
</body>
</html>
